
<?php if ($this->pageCount) { ?>
    <div class="content-pagenation">
        <!-- Previous page link -->
        <?php if (isset($this->previous)) { ?>
            <li><a href="<?php echo $this->url($this->route, array('keyword' => $this->keyword, 'page' => $this->previous)); ?>">&lt; Trước</a></li>
        <?php } else { ?>
            <li><a>&lt; Trước</a></li>
        <?php } ?>

        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page) { ?>
            <?php if ($page != $this->current) { ?>
                <li>
                    <a href="<?php echo $this->url($this->route, array('keyword' => $this->keyword, 'page' => $page)); ?>"><?php echo $page; ?></a>
                </li>
            <?php } else { ?>
                <li class="active"><a><?php echo $page; ?></a></li>
                    <?php } ?>
                <?php } ?>

        <!-- Next page link -->
        <?php if (isset($this->next)) { ?>
            <li>
                <a href="<?php echo $this->url($this->route, array('keyword' => $this->keyword, 'page' => $this->next)); ?>">Sau &gt;</a>
            </li>
        <?php } else { ?>
            <li><a>Sau &gt;</a></li>
        <?php } ?>
    </div>
<?php } ?>